extends "../yingxianzuo-3/yingxianzuo-3.gd"


var baseId = ""
var upText1 = "群星坠落伤害提高25%"
var upText2 = "群星坠落额外附带2层<灼烧>"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒一次性发动10次群星坠落，每次提高50%伤害", "天幕破碎", "yingxianzuo4", 15)

func _castCdSkill(id):
	._castCdSkill(id)
	if id=="yingxianzuo4":
		yingxianzuo4()

func yingxianzuo4():
	p3 = 1
	for i in range(10):
		qxzl()
		p3 += 0.5
		yield(reTimer(0.1),"timeout")	
	p3 = 1	

func _onBattleEnd():
	._onBattleEnd()
	p3 = 1

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 0.25